#include "demo_code.h"
#include "util.h"

__code const char code0_buf[30000]@0x8000 = {0, 2};


//#pragma location="BANK4"
void demo1_code()
{
	FMAP = 0x01;
	TRACE("FMAP: %02x\r\n", FMAP);
	TRACE("%02x %02x\r\n", code0_buf[0], code0_buf[1]);
}

__code const char code1_buf[10000]@0x18000 = {0, 1, 2, 3};

//#pragma location="BANK5"
void demo2_code()
{
	FMAP = 0x03;
	TRACE("FMAP: %02x\r\n", FMAP);
	TRACE("%02x %02x\r\n", *((__code char *)(0x8000)), *((__code char *)(0x8000 + 1)));
}